﻿<%@ Page Language="C#"  Buffer="false" EnableViewState="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            try
            {
                string email = Request.QueryString["email"];
                email = email.Replace("-", ".");
                object o = BLL.DataBaseHelper.instance.GetColumnValue("U_Orders", "updatetime", "email='" + email + "'");
                if (o != null)
                {
                    DateTime dt = new DateTime();
                    DateTime.TryParse(o.ToString(), out dt);
                    if (dt >= DateTime.Now)
                    {
                        Response.Write("ok");
                    }
                    else
                    {
                        Response.Write("expire");
                    }

                }
                else
                {
                    Response.Write("nouser");
                }
              
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }
            finally
            {
                Response.End();
            }
        }
    }
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    </div>
    </form>
</body>
</html>
